package com.kly.user.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.StatsDailyModelLikeRatesDao;
import com.kly.user.db.entity.StatsDailyModelLikeRatesEntity;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * User: yujianfu
 * Date: 2024-01-11
 * Time: 20:56:20.833
 */

@Repository
public class StatsDailyModelLikeRatesDaoImpl extends AbstractBaseMapper<StatsDailyModelLikeRatesEntity> implements StatsDailyModelLikeRatesDao {

    @Override
    public void refreshTodayData(Integer days) {
        //插入新数据
        Map<String, Object> params = Maps.newHashMap();
        params.put("days", days);
        this.getSqlSession().update(this.getStatement("addTodayNewData"),params);

    }
}